.class public Lcom/waiqin365/lightapp/im/utils/e;
.super Ljava/lang/Object;


# static fields
.field private static a:[Ljava/lang/String;

.field private static b:Ljava/util/HashMap;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    new-instance v0, Ljava/util/HashMap;

    const/16 v1, 0x64

    invoke-direct {v0, v1}, Ljava/util/HashMap;-><init>(I)V

    sput-object v0, Lcom/waiqin365/lightapp/im/utils/e;->b:Ljava/util/HashMap;

    return-void
.end method

.method public static a(Ljava/lang/String;)Ljava/lang/String;
    .locals 4

    const/4 v3, 0x1

    sget-object v0, Lcom/waiqin365/lightapp/im/utils/e;->b:Ljava/util/HashMap;

    invoke-virtual {v0, p0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/domain/k;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightapp/im/domain/k;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/im/domain/k;-><init>()V

    invoke-virtual {v0, p0}, Lcom/waiqin365/lightapp/im/domain/k;->b(Ljava/lang/String;)V

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/domain/k;->c()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_1

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/domain/k;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_1

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/domain/k;->c()Ljava/lang/String;

    move-result-object v1

    :goto_0
    return-object v1

    :cond_1
    const-string/jumbo v1, ""

    const-string/jumbo v2, "daibanrenwu_chatid"

    invoke-virtual {p0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2

    const-string/jumbo v2, "xiaomishu_chatid"

    invoke-virtual {p0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2

    const-string/jumbo v2, "wq365_chatid"

    invoke-virtual {p0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2

    const-string/jumbo v2, "tongzhigonggao_chatid"

    invoke-virtual {p0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2

    const-string/jumbo v2, "waiqin365kefu"

    invoke-virtual {p0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2

    const-string/jumbo v2, "managerhelp_chatid"

    invoke-virtual {p0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_4

    :cond_2
    move-object v1, p0

    :cond_3
    :goto_1
    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/domain/k;->d(Ljava/lang/String;)V

    sget-object v2, Lcom/waiqin365/lightapp/im/utils/e;->b:Ljava/util/HashMap;

    invoke-virtual {v2, p0, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    :cond_4
    const-string/jumbo v2, "_"

    invoke-virtual {p0, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    sput-object v2, Lcom/waiqin365/lightapp/im/utils/e;->a:[Ljava/lang/String;

    sget-object v2, Lcom/waiqin365/lightapp/im/utils/e;->a:[Ljava/lang/String;

    array-length v2, v2

    if-le v2, v3, :cond_3

    sget-object v1, Lcom/waiqin365/lightapp/im/utils/e;->a:[Ljava/lang/String;

    aget-object v1, v1, v3

    goto :goto_1
.end method

.method public static a(Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;
    .locals 3

    const/4 v2, 0x1

    sget-object v0, Lcom/waiqin365/lightapp/im/utils/e;->b:Ljava/util/HashMap;

    invoke-virtual {v0, p0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/domain/k;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightapp/im/domain/k;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/im/domain/k;-><init>()V

    invoke-virtual {v0, p0}, Lcom/waiqin365/lightapp/im/domain/k;->b(Ljava/lang/String;)V

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/domain/k;->b()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_1

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/domain/k;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_1

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/domain/k;->b()Ljava/lang/String;

    move-result-object v1

    :goto_0
    return-object v1

    :cond_1
    const-string/jumbo v1, ""

    const-string/jumbo v1, ""

    const-string/jumbo v1, "daibanrenwu_chatid"

    invoke-virtual {p0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    sget-object v1, Lcom/waiqin365/lightapp/im/a;->o:Ljava/lang/String;

    :goto_1
    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/domain/k;->c(Ljava/lang/String;)V

    sget-object v2, Lcom/waiqin365/lightapp/im/utils/e;->b:Ljava/util/HashMap;

    invoke-virtual {v2, p0, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    :cond_2
    const-string/jumbo v1, "xiaomishu_chatid"

    invoke-virtual {p0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_3

    sget-object v1, Lcom/waiqin365/lightapp/im/a;->n:Ljava/lang/String;

    goto :goto_1

    :cond_3
    const-string/jumbo v1, "wq365_chatid"

    invoke-virtual {p0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4

    sget-object v1, Lcom/waiqin365/lightapp/im/a;->r:Ljava/lang/String;

    goto :goto_1

    :cond_4
    const-string/jumbo v1, "tongzhigonggao_chatid"

    invoke-virtual {p0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_5

    sget-object v1, Lcom/waiqin365/lightapp/im/a;->p:Ljava/lang/String;

    goto :goto_1

    :cond_5
    const-string/jumbo v1, "waiqin365kefu"

    invoke-virtual {p0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_6

    sget-object v1, Lcom/waiqin365/lightapp/im/a;->q:Ljava/lang/String;

    goto :goto_1

    :cond_6
    const-string/jumbo v1, "managerhelp_chatid"

    invoke-virtual {p0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_7

    sget-object v1, Lcom/waiqin365/lightapp/im/a;->s:Ljava/lang/String;

    goto :goto_1

    :cond_7
    const-string/jumbo v1, "_"

    invoke-virtual {p0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    sput-object v1, Lcom/waiqin365/lightapp/im/utils/e;->a:[Ljava/lang/String;

    sget-object v1, Lcom/waiqin365/lightapp/im/utils/e;->a:[Ljava/lang/String;

    array-length v1, v1

    if-le v1, v2, :cond_8

    sget-object v1, Lcom/waiqin365/lightapp/im/utils/e;->a:[Ljava/lang/String;

    aget-object v1, v1, v2

    invoke-static {p1}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/waiqin365/base/db/offlinedata/m;->f(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    goto :goto_1

    :cond_8
    move-object v1, p0

    goto :goto_1
.end method

.method public static b(Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;
    .locals 3

    const/4 v2, 0x1

    sget-object v0, Lcom/waiqin365/lightapp/im/utils/e;->b:Ljava/util/HashMap;

    invoke-virtual {v0, p0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/domain/k;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightapp/im/domain/k;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/im/domain/k;-><init>()V

    invoke-virtual {v0, p0}, Lcom/waiqin365/lightapp/im/domain/k;->b(Ljava/lang/String;)V

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/domain/k;->d()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_1

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/domain/k;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_1

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/domain/k;->d()Ljava/lang/String;

    move-result-object v1

    :goto_0
    return-object v1

    :cond_1
    const-string/jumbo v1, ""

    const-string/jumbo v1, ""

    const-string/jumbo v1, "_"

    invoke-virtual {p0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    sput-object v1, Lcom/waiqin365/lightapp/im/utils/e;->a:[Ljava/lang/String;

    sget-object v1, Lcom/waiqin365/lightapp/im/utils/e;->a:[Ljava/lang/String;

    array-length v1, v1

    if-le v1, v2, :cond_2

    sget-object v1, Lcom/waiqin365/lightapp/im/utils/e;->a:[Ljava/lang/String;

    aget-object v1, v1, v2

    invoke-static {p1}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/waiqin365/base/db/offlinedata/m;->e(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_1
    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/domain/k;->e(Ljava/lang/String;)V

    sget-object v2, Lcom/waiqin365/lightapp/im/utils/e;->b:Ljava/util/HashMap;

    invoke-virtual {v2, p0, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    :cond_2
    const-string/jumbo v1, "0"

    goto :goto_1
.end method

.method public static c(Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;
    .locals 4

    const/4 v3, 0x1

    sget-object v0, Lcom/waiqin365/lightapp/im/utils/e;->b:Ljava/util/HashMap;

    invoke-virtual {v0, p0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/domain/k;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightapp/im/domain/k;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/im/domain/k;-><init>()V

    invoke-virtual {v0, p0}, Lcom/waiqin365/lightapp/im/domain/k;->b(Ljava/lang/String;)V

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/domain/k;->a()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_1

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/domain/k;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_1

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/domain/k;->a()Ljava/lang/String;

    move-result-object v1

    :goto_0
    return-object v1

    :cond_1
    const-string/jumbo v1, ""

    const-string/jumbo v1, ""

    const-string/jumbo v2, "_"

    invoke-virtual {p0, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    sput-object v2, Lcom/waiqin365/lightapp/im/utils/e;->a:[Ljava/lang/String;

    sget-object v2, Lcom/waiqin365/lightapp/im/utils/e;->a:[Ljava/lang/String;

    array-length v2, v2

    if-le v2, v3, :cond_2

    sget-object v1, Lcom/waiqin365/lightapp/im/utils/e;->a:[Ljava/lang/String;

    aget-object v1, v1, v3

    const-string/jumbo v2, "xiaomishu_chatid"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_3

    const-string/jumbo v1, "xiaomishu xms"

    :cond_2
    :goto_1
    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/domain/k;->a(Ljava/lang/String;)V

    sget-object v2, Lcom/waiqin365/lightapp/im/utils/e;->b:Ljava/util/HashMap;

    invoke-virtual {v2, p0, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    :cond_3
    const-string/jumbo v2, "daibanrenwu_chatid"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_4

    const-string/jumbo v1, "daibangongzuo dbgz"

    goto :goto_1

    :cond_4
    const-string/jumbo v2, "tongzhigonggao_chatid"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_5

    const-string/jumbo v1, "tongzhigonggao tzgg"

    goto :goto_1

    :cond_5
    const-string/jumbo v2, "wq365_chatid"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_6

    const-string/jumbo v1, "waiqin365tuandui wq365td"

    goto :goto_1

    :cond_6
    const-string/jumbo v2, "waiqin365kefu"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_7

    const-string/jumbo v1, "365kefu 365kf"

    goto :goto_1

    :cond_7
    const-string/jumbo v2, "managerhelp_chatid"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_8

    const-string/jumbo v1, "guanlizhushou glzs"

    goto :goto_1

    :cond_8
    invoke-static {p1}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/waiqin365/base/db/offlinedata/m;->g(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    goto :goto_1
.end method
